export default function (options) {
  return new Promise((resolve, reject) => {
    wx:wx.request({
      url: options.url,
      data: options.data,
      header: options.header,
      method: options.method ? options.method : 'GET',
      dataType: options.dataType ? options.dataType : 'json',
      responseType: options.responseType ? options.responseType : 'text',
      success: resolve,
      fail: reject,
      complete: options.complete,
    })
  });
}